package com.xyz.dao.logic;

import com.free.ext.mybatis.model.entity.PageResponseModel;
import com.xyz.dao.dao.OCustomergamelogDao;
import com.xyz.domain.table.OCustomergamelog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OCustomergamelogLogic {

    @Autowired
    private OCustomergamelogDao oCustomergamelogDao;

    public OCustomergamelog add(OCustomergamelog oCustomergamelog){
        return oCustomergamelogDao.insert(oCustomergamelog);
    }

    public Integer update(OCustomergamelog oCustomergamelog){
        return oCustomergamelogDao.update(oCustomergamelog);
    }

    public List<OCustomergamelog> list(OCustomergamelog oCustomergamelog, String orderBy){
        return oCustomergamelogDao.selectList(oCustomergamelog, orderBy);
    }

    public Integer delete(Integer key){
        return oCustomergamelogDao.delete(key);
    }

    public PageResponseModel<OCustomergamelog> pageInfo(OCustomergamelog oCustomergamelog, String orderBy, Integer pageNo, Integer pageSize){
        return oCustomergamelogDao.selectByPageNo(oCustomergamelog, orderBy, pageNo, pageSize);
    }

}